const { db, query } = require("../../db/db");
const util = require("util");

async function DeleteUserDialogueList(req, res) {
  let UserId = Number(req.params.username);

  const delete_user_sql = util.format(
    "Delete \
      FROM Ai_Chat_Record \
      WHERE UserId=%s",
    UserId
  );

  await query(delete_user_sql);

  res.send({
    status: 0,
  });
}

module.exports = { DeleteUserDialogueList };
